package cn.m3a1.dao;

import cn.m3a1.bean.Curse;
import cn.m3a1.bean.CurseExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CurseMapper {
    long countByExample(CurseExample example);

    int deleteByExample(CurseExample example);

    int insert(Curse record);

    int insertSelective(Curse record);

    List<Curse> selectByExample(CurseExample example);
    List<Curse> selectAll();
    List<Curse> selectByUserId(Integer id);
    List<Curse> selectByTeaId(Integer id);
    int updateByExampleSelective(@Param("record") Curse record, @Param("example") CurseExample example);

    int updateByExample(@Param("record") Curse record, @Param("example") CurseExample example);


}